package com.dc.project.model;

import java.io.Serializable;
import java.util.Date;

public class Attendance implements Serializable {
	/**
	 * 考勤表自增id
	 *
	 */
	private int attendance_id;

	/**
	 * 班级用户id 外键
	 *
	 */
	private int fk_class_stu_id;

	/**
	 * 课次id 外键
	 *
	 */
	private int fk_times_id;

	/**
	 * 教学进度计划id 冗余
	 *
	 */
	private int schedule_id;

	/**
	 * 班级id 冗余
	 *
	 */
	private int class_id;

	/**
	 * 用户id 冗余
	 *
	 */
	private int user_id;

	/**
	 * 0正常1旷课半天2旷课半天3迟到4请假半天5请假一天6早退
	 *
	 */
	private int state;

	/**
	 * 考勤日期（到天）
	 *
	 */
	private Date date;

	/**
	 * 创建人id
	 *
	 */
	private int create_user_id;

	/**
	 * 创建人名称
	 *
	 */
	private String create_user_name;

	/**
	 * 创建时间
	 *
	 */
	private Date create_time;

	/**
	 * 修改人id
	 *
	 */
	private int update_user_id;

	/**
	 * 修改人名称
	 *
	 */
	private String update_user_name;

	/**
	 * 修改时间
	 *
	 */
	private Date update_time;

	/**
	 * 0删除1存在
	 *
	 */
	private int is_deleted;

	/**
	 * 版本号
	 */
	private int version;

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}


	/**
	 */
	private static final long serialVersionUID = 1L;

	public int getAttendance_id() {
		return attendance_id;
	}

	public void setAttendance_id(int attendance_id) {
		this.attendance_id = attendance_id;
	}

	public int getFk_class_stu_id() {
		return fk_class_stu_id;
	}

	public void setFk_class_stu_id(int fk_class_stu_id) {
		this.fk_class_stu_id = fk_class_stu_id;
	}

	public int getFk_times_id() {
		return fk_times_id;
	}

	public void setFk_times_id(int fk_times_id) {
		this.fk_times_id = fk_times_id;
	}

	public int getSchedule_id() {
		return schedule_id;
	}

	public void setSchedule_id(int schedule_id) {
		this.schedule_id = schedule_id;
	}

	public int getClass_id() {
		return class_id;
	}

	public void setClass_id(int class_id) {
		this.class_id = class_id;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getCreate_user_id() {
		return create_user_id;
	}

	public void setCreate_user_id(int create_user_id) {
		this.create_user_id = create_user_id;
	}

	public String getCreate_user_name() {
		return create_user_name;
	}

	public void setCreate_user_name(String create_user_name) {
		this.create_user_name = create_user_name;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public int getUpdate_user_id() {
		return update_user_id;
	}

	public void setUpdate_user_id(int update_user_id) {
		this.update_user_id = update_user_id;
	}

	public String getUpdate_user_name() {
		return update_user_name;
	}

	public void setUpdate_user_name(String update_user_name) {
		this.update_user_name = update_user_name;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public int getIs_deleted() {
		return is_deleted;
	}

	public void setIs_deleted(int is_deleted) {
		this.is_deleted = is_deleted;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", attendance_id=").append(attendance_id);
		sb.append(", fk_class_stu_id=").append(fk_class_stu_id);
		sb.append(", fk_times_id=").append(fk_times_id);
		sb.append(", schedule_id=").append(schedule_id);
		sb.append(", class_id=").append(class_id);
		sb.append(", user_id=").append(user_id);
		sb.append(", state=").append(state);
		sb.append(", date=").append(date);
		sb.append(", create_user_id=").append(create_user_id);
		sb.append(", create_user_name=").append(create_user_name);
		sb.append(", create_time=").append(create_time);
		sb.append(", update_user_id=").append(update_user_id);
		sb.append(", update_user_name=").append(update_user_name);
		sb.append(", update_time=").append(update_time);
		sb.append(", is_deleted=").append(is_deleted);
		sb.append("]");
		return sb.toString();
	}
}